const  checkboxT = row => {
  if(row.eshopNumber){
    return 1
  }else {
    return 0
  }
}
export const columns = [
  {
    type: 'selection',
    minWidth: '50',
    label: '多选',
    selectable: checkboxT,
    disabled: true
  },
  {
    prop: 'orderNo',
    minWidth: '150',
    label: '订单号'
  },
  {
    prop: 'supplierOrderNo',
    minWidth: '150',
    label: '供应商订单编号'
  },
  {
    prop: 'purchasingOrganization',
    minWidth: '150',
    label: '采购组织'
  },
  {
    prop: 'purchasingPeople',
    minWidth: '150',
    label: '下单人'
  },
  {
    prop: 'purchasingPhone',
    minWidth: '150',
    label: '下单手机号'
  },
  {
    prop: 'addressee',
    minWidth: '150',
    label: '收件人'
  },
  {
    prop: 'receivingAddress',
    minWidth: '150',
    label: '收货地址'
  },
  {
    prop: 'contactNumber',
    minWidth: '150',
    label: '联系电话'
  },
  {
    prop: 'supplierInfo',
    minWidth: '150',
    label: '供应商信息'
  },
  {
    prop: 'invoiceType',
    minWidth: '150',
    label: '发票类型'
  },
  {
    prop: 'invoiceTitle',
    minWidth: '150',
    label: '发票抬头'
  },
  {
    prop: 'financialOrganization',
    minWidth: '150',
    label: '财务组织'
  },
  {
    prop: 'remark',
    minWidth: '150',
    label: '备注'
  },
]

export const columns1 = [
  {
    prop: 'content',
    minWidth: '150',
    label: '操作信息'
  },
  {
    prop: 'operator',
    minWidth: '150',
    label: '操作人'
  },
  {
    prop: 'operate_time',
    minWidth: '150',
    label: '操作时间'
  }
]

export const columns2 = [
  {
    prop: 'goodsName',
    minWidth: '150',
    label: '商品名称'
  },
  {
    prop: 'excludeTaxPrice',
    minWidth: '100',
    label: '未税单价'
  },
  {
    prop: 'includeTaxPrice',
    minWidth: '100',
    label: '含税单价'
  },
  {
    prop: 'number',
    minWidth: '100',
    label: '数量'
  },
  {
    prop: 'excludeTaxSubtotal',
    minWidth: '100',
    label: '未税总价'
  },
  {
    prop: 'includeTaxSubtotal',
    minWidth: '100',
    label: '含税总价'
  },
  {
    prop: 'remark',
    minWidth: '100',
    label: '备注'
  },
  {
    minWidth: '100',
    label: '合计',
    slotName: 'total'
  }
]
